package fr.upmc.i3s.fuglmeyeranalyser.tools.xls;

import java.util.LinkedList;

import fr.upmc.i3s.fuglmeyeranalyser.patients.Patient;
import fr.upmc.i3s.fuglmeyeranalyser.patients.PatientList;

public class XLSDataFileContent {
	
	private LinkedList<String> paramsList;
	private PatientList patientList;
	
	public XLSDataFileContent(LinkedList<String> paramsList, PatientList patientList) {
		this.paramsList = paramsList;
		this.patientList = patientList;
	}

	public LinkedList<String> getParamsList() {
		return paramsList;
	}

	public void setParamsList(LinkedList<String> paramsList) {
		this.paramsList = paramsList;
	}

	public PatientList getPatientList() {
		return patientList;
	}

	public void setPatientList(PatientList patientList) {
		this.patientList = patientList;
	}
	
	public int getPatientNumber() {
		return this.patientList.size();
	}
	
	public int getParametersNumber() {
		return this.paramsList.size();
	}
	
	public int getMaxPatientScoreNumber() {
		int max = 0;
		for(Patient p : patientList) {
			if(p.getScoreList().size() > max) {
				max = p.getScoreList().size();
			}
		}
		return max;
	}
	
}
